package com.talent.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.talent.page.Page;
import com.talent.pojo.Course;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);

	List<Course> selectCoursePage(@Param("course")Course course, @Param("page")Page<Course> page);

	void deleteAll(String[] ids);

	int selectCount(@Param("code")String code);

	Integer selectIdByCourseName(@Param("courseName")String courseName);
}